from api.department_api import IHRMDepartmentApi
from common.get_token_util import TokenTuil


class IHRMDepartment:
    @classmethod
    def get_dep_id(cls):
        token=TokenTuil.get_token()
        body={"name":"张三部","code":"99998"}
        resp=IHRMDepartmentApi.add_dep_api(token,body)
        dep_id=resp.json().get('data').get('id')
        return dep_id



if __name__ == '__main__':
    print(IHRMDepartment.get_dep_id())
